package com.ldk.test;

import java.util.Scanner;

import com.ldk.Runnable.DataDealRunnable2;


public class test {

	public static void main(String[] args) {
		Scanner in  = new Scanner(System.in);
		while(in.hasNext()){
			int num = in.nextInt();
			for(int i = 0;i<num;i+=10){
				//10个分一个数据块
				int count = i+9>=num?num-1:i+9;
				System.out.println(i+","+count);
			}
		}
	}

}
